package com.xse.security.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author xieshue
 * @date 2018\2\5 0005
 */
@Controller
public class HomeController {
    @GetMapping({"/", "/index", "/home"})
    public String greeting() {
        System.out.println("进入首页index.html");
        return "index";
    }

    @GetMapping("/login")
    public String login() {
        return "login";
    }
}
